<template>
  <div>
    <div v-for="item in arr" :key="item"> {{ item }}</div>
    <button @click="dele">推</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: ['嘻嘻嘻', '哈哈哈', '嘿嘿嘿'],
    }
  },
  methods: {
    dele() {
      this.arr.push(this.arr[0])
      this.arr.splice(0,1)
    }
  }
}
</script>

<style></style>